package cn.wolfcode.luowowo.comment.dao;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * monogDB 游记评论接口
 */
@Repository
public interface ITravelCommentDAO extends MongoRepository<TravelComment,String> {

    Page<TravelComment> findByTravelId(Long travelId, Pageable pageable);
}
